package com.gregbugaj.nscaffold.generator;

import java.util.List;

import com.gregbugaj.nscaffold.node.PClass;
import com.gregbugaj.nscaffold.node.PropertyInfo;
/**
 * Simple visitor that does nothing except print out the 
 * structure of read in configuration
 * @author gbugaj
 *
 */
public class PrintVisitor implements Visitor{
	
	@Override
	public void visit(PClass pclass) {
		System.out.println("Enity : "+pclass.getEntityName());
		List<PropertyInfo> properties=pclass.getProperties();
		for(PropertyInfo pi:properties){						
			pi.accept(this);
		}
	}

	@Override
	public void visit(PropertyInfo property) {
		System.out.println("  "+property);
	}
}
